﻿<%@ Page Language="C#" AutoEventWireup="true" masterpagefile="~/Admin/Main.master" title="我的资料" CodeFile="ChangeMyInformation.aspx.cs" Inherits="Admin_ChangeMyInformation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" Runat="Server">
    <div class="leftMenuTitle">
        安全设置
    </div>
    <ul class="leftMenu">
        <li><a href="ChangeMyInformation.aspx">我的资料</a></li>
        <li><a href="ManagerAdd.aspx">管理员管理</a></li>
        <li><a href="SysLog.aspx">系统日志</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" Runat="Server">
  <div id="mainMenu">
  	<ul>
		<li><a href="ChangeMyInformation.aspx">我的资料</a></li></ul>
  </div>
   <div id="main">
   <asp:Label id="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7">
      <tr>
        <td colspan="2" bgcolor="#FFFFFF" class="mainTitle">管理员信息&nbsp;</td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" class="mainLeftTd">登陆帐号:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:Label ID="ManagerName" runat="server"></asp:Label></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >用户笔名:</td>
        <td bgcolor="#FFFFFF" >&nbsp;<asp:TextBox ID="PenName" runat="server"></asp:TextBox><span class="explain">&nbsp;
            用于网站信息编辑等</span></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >
            旧密码:</td>
        <td bgcolor="#FFFFFF">
            &nbsp;<asp:TextBox ID="OldPassword" runat="server" TextMode="Password"></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ErrorMessage="旧密码错误！"
                OnServerValidate="CustomValidator1_ServerValidate" ControlToValidate="OldPassword"></asp:CustomValidator><span class="explain">不修改密码请留空</span></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">
            新密码:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Password"
                Display="Dynamic" ErrorMessage="密码至少六位" ValidationExpression="\w{6,32}"></asp:RegularExpressionValidator><span
                    class="explain">不修改密码请留空</span></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">
            确认新密码:</td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:TextBox ID="AffirmPassword" runat="server" TextMode="Password"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="AffirmPassword"
                ControlToValidate="Password" Display="Dynamic" ErrorMessage="两次密码不一致"></asp:CompareValidator><span
                    class="explain">不修改密码请留空</span></td>
      </tr>

      <tr>
        <td align="right" bgcolor="#FFFFFF"></td>
        <td bgcolor="#FFFFFF">&nbsp;<asp:Button ID="Chanage" runat="server" Text="修改资料" CssClass="inputBt" OnClick="Chanage_Click" /></td>
      </tr>
    </table>
  </div>
  <script language="JavaScript" type="text/javascript" >
        topMenuThisPage(4);//当前位置顶部菜单标识
        leftMenuThisPage(1,1);//当前位置左侧菜单标识
        mainMenuThisPage(1);//当前选项卡标识
  </script>
</asp:Content>